package com.chixing.day08_interface;

public class CpuTest {
    public static void main(String[] args) {
        //多态:接口

        //父类引用子类对象
        Cpu cpu = new IntelCpu();
        //子类重写父类方法
        cpu.cpuRunning();
        cpu.cpuClosing();

        Cpu cpu2 = new IntelCpu();
        cpu2.cpuRunning();
        cpu2.cpuClosing();
    }
}
